<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生信息-修改</title>
    <script type="text/javascript">
        function show() {
            var td = event.srcElement;
            var tr = td.parentElement;
            tr.style.backgroundColor = "red";
        }

        function clearColor() {
            var td = event.srcElement;
            var tr = td.parentElement;
            tr.style.backgroundColor = "transparent";
        }
    </script>
</head>
<body>
<div align="center">
    <form th:action="@{/update.do}" method="get">
        <input type="hidden" name="id" th:value="${student.id}"/>
        <table>
            <tr>
                <th>姓名</th>
                <th><!--/*@thymesVar id="student" type="com.tencent.pojo.Student"*/-->
                    <input type="text" name="name" th:value="${student.name}"></th>
            </tr>
            <tr>
                <th>年龄</th>
                <th><input type="number" name="age" th:value="${student.age}"></th>
            </tr>
            <tr>
                <th>电话</th>
                <th><input type="text" name="phone" th:value="${student.phone}"></th>
            </tr>
            <tr>
                <th>地址</th>
                <th><input type="text" name="address" th:value="${student.address}"></th>
            </tr>
            <tr>
                <th>状态</th>
                <th><input type="submit" name="修改"></th>
            </tr>
        </table>
    </form>
</div>
</body>
</html>